package com.towery.dbsrcmanager.es.repository;

import com.towery.dbsrcmanager.es.entity.TDbObjectsEsVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**Elasticsearch 搜索数据对象
 * Created by User on 2017/1/9.
 */
public interface  DBObjectsRepository extends ElasticsearchRepository<TDbObjectsEsVO, String> {

    Page<TDbObjectsEsVO> findByDdlContaining(String ddl, Pageable pageable) ;
}
